c5cc6468a1f306f6e80103e3e8f263a0602d3004,src/main/java/uk/co/coen/capsulecrm/client/CapsuleEntity.java,CapsuleEntity,listTasks,#TaskStatus#,126

Before Change


    }

    public F.Promise<CTasks> listTasks(TaskStatus status) {
        return WS.url(capsuleUrl + "/api" + readContextPath() + "/" + id + "/tasks")
                .setHeader("Content-Type", "text/xml; charset=utf-8")
                .setQueryParameter("status", status.name())
                .setAuth(capsuleToken, "")
                .get().map(new F.Function<WS.Response, CTasks>() {
                    @Override
                    public CTasks apply(WS.Response response) throws Throwable {
                        return (CTasks) xstream.unmarshal(new DomReader(response.asXml()));
                    }
                });
    }

    public F.Promise<WS.Response> add(final CTask task) {

After Change


    }

    public Future<CTasks> listTasks(TaskStatus status) throws IOException {
        return transform(new ListenableFutureAdapter<>(asyncHttpClient.prepareGet(capsuleUrl + "/api" + readContextPath() + "/" + id + "/tasks")
                .addQueryParameter("status", status.name())
                .addHeader("Accept", "application/xml")
                .setRealm(realm)
                .execute()),
                new TransformHttpResponse<CTasks>(xstream));
    }

    public Future<Response> add(final CTask task) throws IOException {